package com.xuecheng.api.media;

import com.xuecheng.api.media.model.upload.TokenResult;
import com.xuecheng.api.media.model.upload.VodRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

/**
 * @author 黄子弟
 * @Date 2021/12/14
 */

@Api(value = "文件上传信息api" ,tags = "文件上传信息api接口信息")
public interface UpLoadControllerApi {
    @ApiOperation("获取上传凭证")
    @ApiImplicitParam(name = "vodRequest",value = "媒体上传请求信息",required = true,dataType = "VodRequest",paramType = "body")
    TokenResult getUpLoadToken(VodRequest vodRequest);

    @ApiOperation("刷新上传凭证")
    @ApiImplicitParam(name = "videoId",value = "上传视频的标识id",required = true,dataType = "Long",paramType = "path")
    TokenResult refreshUpLoadToken(String videoId);



}
